package eft.android.controller;

public class Weight {
  
  private double weight;
  private long _id;
  private long date;
  //TODO add constructors
  public Weight()
  {
	  this.weight = 0;
	  this._id = 0;
	  this.date = 0;
  }
  public Weight(double weight, long _id, long date)
  {
	  this.weight = weight;
	  this._id = _id;
	  this.date = date;
  }
  public long getID()
  {
	  return this._id;
  }
  
  public void setID(long id)
  {
	  this._id = id;
  }
  
  public double getWeight(){
	  return this.weight;
  }
  
  public long getDate()
  {
	  return this.date;
  }
  
  //error check
  public boolean setDate(long d)
  {
	  this.date = d;
	  return true;
  }
  
  public boolean setWeight(double w){
	  if(w > 0){
		  this.weight = w;
		  return true;
	  }
	  
	  return false;
  }
  

}
